package com.pig.pojo.recipes;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig.pojo.BasePojo;

import java.util.Date;

@TableName("p_condiment")
public class Condiment extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long recipesId;
    private String ingredientsName;
    private String groupName;
    private String dosage;

    public Condiment() {
    }

    public Condiment(Long id, Long recipesId, String ingredientsName, String groupName, String dosage) {
        this.id = id;
        this.recipesId = recipesId;
        this.ingredientsName = ingredientsName;
        this.groupName = groupName;
        this.dosage = dosage;
    }

    public Condiment(Date createdTime, Date modifiedTime, Long id, Long recipesId, String ingredientsName, String groupName, String dosage) {
        super(createdTime, modifiedTime);
        this.id = id;
        this.recipesId = recipesId;
        this.ingredientsName = ingredientsName;
        this.groupName = groupName;
        this.dosage = dosage;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRecipesId() {
        return recipesId;
    }

    public void setRecipesId(Long recipesId) {
        this.recipesId = recipesId;
    }

    public String getIngredientsName() {
        return ingredientsName;
    }

    public void setIngredientsName(String ingredientsName) {
        this.ingredientsName = ingredientsName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDosage() {
        return dosage;
    }

    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    @Override
    public String toString() {
        return "Condiment{" +
                "id=" + id +
                ", recipesId=" + recipesId +
                ", ingredientsName='" + ingredientsName + '\'' +
                ", groupName='" + groupName + '\'' +
                ", dosage='" + dosage + '\'' +
                '}';
    }
}
